<?php
$x1 = '';//X轴数据
$y1 = '';//Y轴数据
foreach ($analyseIntervaFrequencyl['chartData'] as $key => $value) {
	$temp = $key.',';
        $x1 .=$temp;
	$t = $value.',';
	$y1 .=$t;
	
}
$x = substr($x1,0,strlen($x1)-1); 
$y = substr($y1,0,strlen($y1)-1); 
//echo $x;
//echo '<br/>';
//echo $y;
?>
<div>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl . '/js/mobile/highcharts.js' ?>"></script>
    <div id="chart-line-analyseIntervaFrequencyl" style="min-width:700px;height:400px"></div>
    <script>
        function addChartAnalyseIntervaFrequencyl() {
    $('#chart-line-analyseIntervaFrequencyl').highcharts({
        title: {
            text: "<?php echo $analyseIntervaFrequencyl['chartTitle'];?>",
            x: -20 //center
        },
        subtitle: {
            text: '来源: 比邻平台',
            x: -20
        },
        xAxis: {
            categories: [<?php echo $x;?>]
        },
        yAxis: {
            title: {
                text: '次数'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '次'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: '次数',
            data: [<?php echo $y;?>]
        }]
    });
        };
        addChartAnalyseIntervaFrequencyl();
    </script>

</div>